package com.zjc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zjc.pojo.StuRoom;
import com.zjc.mapper.StuRoomMapper;
import com.zjc.pojo.Student;
import com.zjc.service.StuRoomService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 周佳成
 * @since 2023-09-17
 */
@Service
public class StuRoomServiceImpl extends ServiceImpl<StuRoomMapper, StuRoom> implements StuRoomService {
	@Resource
	StuRoomMapper stuRoomMapper;

	@Override
	public int deleteRoom(Integer id) {
			LambdaQueryWrapper<StuRoom> lambdaQueryWrapper = new LambdaQueryWrapper<>();
			lambdaQueryWrapper.eq(StuRoom::getRoomId,id);
			return stuRoomMapper.delete(lambdaQueryWrapper);
	}
}
